<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" > 
<HTML>
<HEAD>
<META HTTP-EQUIV="Expires" content="-1">
<META NAME="GENERATOR" Content="Microsoft Visual Studio 7.0">
<META name="CODE_LANGUAGE" Content="C#">
<META name=vs_defaultClientScript content="JavaScript">
<META name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
<TITLE>New Verification Item</TITLE>
<STYLE>
.input{border:1px solid black;BACKGROUND-COLOR: window;FONT-WEIGHT: bold; FONT-FAMILY: Monospace}
select{border:1px solid black;BACKGROUND-COLOR: window;FONT-WEIGHT: bold; FONT-FAMILY: Monospace}
TEXTAREA{WIDTH: 100%; HEIGHT: 100%;OVERFLOW: visible}
TD{PADDING-LEFT:0px}
</STYLE>
</HEAD>
<BODY bgcolor="menu" style="" style="font:menu" onload="page_Load()" topmargin="5px" leftmargin="5px" scroll="no">
 Item Label:
<DIV style="margin-bottom:10px" nowrap>
<INPUT class="input" datasrc="#xmlRS" datafld="lable" onchange="enableOK()">
<INPUT type="checkbox" datasrc="#xmlRS" datafld="IsCustom" id="chkCustom" NAME="chkCustom"> Custom
<SPAN style="display:expression(chkCustom.checked?'none':'')"> | <INPUT type="checkbox" datasrc="#xmlRS" datafld="DefaultValue" onclick="enableOK()"> On by default</SPAN>
</DIV>
 Description:
<TABLE width="100%" cellpadding="0" cellspacing="0" style="margin-bottom:10px"><TR><TD>
<TEXTAREA id="txaDesc" class="input" datasrc="#xmlRS" datafld="description" onchange="enableOK()" onresize="cropWindow('v')"></TEXTAREA>
</TD></TR></TABLE>
Description to Broker:
<TABLE width="100%" cellpadding="0" cellspacing="0" style="margin-bottom:10px"><TR><TD>
<TEXTAREA class="input" datasrc="#xmlRS" datafld="DescToBroker" onchange="enableOK()"></TEXTAREA>
</TD></TR></TABLE>
<DIV style="display:expression(chkCustom.checked?'none':'')">
<TABLE style="font:menu" cellpadding="0" cellspacing="0" width="100%">
	<TR>
		<TD width="70%"> Default Image:</TD>
		<TD width="30%"> Default Page:</TD>
	</TR>
	<TR>
		<TD><SELECT id="selImages" class="dataSelect" dataFldText="ImageType" dataFldValue="ID" datasrc="#xmlRS" datafld="ImageTypeID" onchange="enableOK()" NAME="selImages" style="WIDTH: 100%"></SELECT></TD>
		<TD><SELECT id="selPages"  class="dataSelect" dataFldText="PageDesc"  dataFldValue="PageID" datasrc="#xmlRS" datafld="PageID" onchange="enableOK()" NAME="selPages" style="WIDTH: 100%"></SELECT></TD>
	</TR>
</TABLE>
</DIV>
<P align="center" style="width:100%">
<SPAN style="width:15%">&nbsp;</SPAN>
<INPUT type="button" value="OK" onclick="submit()" id="btnOk" disabled style="border:2px solid black;font:menu;width:20%">
<SPAN style="width:20%">&nbsp;</SPAN>
<INPUT type="button" value="CANCEL" onclick="submit(true)" style="border:2px solid black;font:menu;width:20%">
<SPAN style="width:20%">&nbsp;</SPAN>
</P>
<XML id="xmlRS"></XML>
</BODY>
</HTML>
<SCRIPT language="javascript" src="/Include/common.js"></SCRIPT>
<SCRIPT language="javascript">
var da = dialogArguments;
	loadSelectFromRS(selImages,da.images.recordset);
	loadSelectFromRS(selPages,da.pages.recordset);
function page_Load(){
	//document.body.insertAdjacentHTML("beforeEnd",da.images.outerHTML);
	//document.body.insertAdjacentHTML("beforeEnd",da.pages.outerHTML);
//	selImages.addBehavior("/include/HTC/dataselect.htc");
//	selPages.addBehavior("/include/HTC/dataselect.htc");
	xmlRS.loadXML(da.xmlRS.xml);
	chkCustom.disabled = _ID() != 0 || _IsCustom() == 1;
	cropWindow();
}
function loadSelectFromRS(sel,rs){
	var textFld = sel.getAttribute("dataFldText");
	var valueFld = sel.getAttribute("dataFldValue")||textFld;
	if( !rs.RecordCount )return;
	for( rs.MoveFirst(); !rs.EOF; rs.MoveNext() ){
		var o = document.createElement("OPTION");
		o.text = rs(textFld).value;
		o.value = rs(valueFld).value;
		sel.add(o);
	}
	return sel;
}
function submit(cancel){
	if( cancel )return close();
	da.xmlRS.loadXML(xmlRS.xml)
	returnValue = da.xmlRS;
	close();
}
function enableOK(){btnOk.disabled=false}
function _ID(){return parseInt(xmlRS.recordset("ID").value);} 
function _IsCustom(){return eval(xmlRS.recordset("IsCustom").value);} 
</SCRIPT>
